
package com.gs.netty.core.annotation;




import com.gs.netty.core.ResponseCode;
import com.gs.netty.core.SerializableEnum;

import java.lang.annotation.*;

/**
 * 异常方法注解
 */
@Target(ElementType.METHOD)
@Retention(RetentionPolicy.RUNTIME)
@Documented
public @interface CommandExceptionHandler {

	Class<? extends Throwable>[] value() default {};
	int statusCode() default ResponseCode.OK;

	SerializableEnum serializable() default SerializableEnum.JSON;

}
